<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>vue-next补丁实现</div>

    <div id="counter">
        Counter: {{ counter }}
    </div>
</body>
<script>
    // document.createEvent('Event').timeStamp
    document.createEvent = function (evtName) {
        if (evtName == 'Event') {
            return {
                timeStamp: Date.now + 100
            }
        }
    }
    // console
    console.info = function (...msg) {
        console.log("info:", msg)
    }
    console.error = function (...msg) {
        console.log("error:", msg)
    }
    // SVG
    class SVGElement extends Element {
        
    }
</script>
<script src="./Vuenext.js"></script>
<script>
    const Counter = {
        data() {
            return {
                counter: 123213
            }
        }
    }
    Vue.createApp(Counter).mount('#counter')
</script>

</html>